package Simpleblog::Controller::Test;

use strict;
use warnings;
use base 'Catalyst::Controller';

=head1 NAME

Simpleblog::Controller::Test - Catalyst Controller

=head1 DESCRIPTION

Catalyst Controller.

=head1 METHODS

=cut


=head2 index 

=cut

sub index : Private {
    my ( $self, $c ) = @_;

    $c->response->body('Matched Simpleblog::Controller::Test in Test.');
}

=head2 captcha_string

return captcha_string

=cut

sub captcha_string : Local {
    my ($self, $c) = @_;
    if ($c->debug) {
        if (my $string = $c->captcha_string) {
            $c->res->body($string);
        }
        else {
            $c->res->body('no string');
        }
    }
    else {
        $c->res->body('not in debug mode');
    }
}

=head1 AUTHOR

chylli,,,

=head1 LICENSE

This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

1;
